package com.ckc.mq.rest;

import com.ckc.mq.producer.Producer01;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProducerController {

    @Autowired
    Producer01 producer01;

    @RequestMapping("/send01")
    public String sendMsg01() {
        producer01.syncSend();
        return "success";
    }
    @RequestMapping("/send02")
    public String sendMsg02() {
        producer01.send02();
        return "success";
    }

}
